import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description: leetcode.简单题.自除数
 */

class Solution {
    public List<Integer> selfDividingNumbers(int left, int right) {
        StringBuilder s = new StringBuilder();
        for(int i = left; i <= right; i++) {
            int num = i;
            while(num != 0){
                if(i % (num % 10) != 0){
                    break;
                }
                num /= 10;
            }
            if(num == 0){
                s.append(i);
            }
        }

    }
}

public class Test {
}
